package com.ruoyi.pethosital.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pethosital.mapper.TCustomerMapper;
import com.ruoyi.pethosital.domain.TCustomer;
import com.ruoyi.pethosital.service.ITCustomerService;

/**
 * 用户Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-04
 */
@Service
public class TCustomerServiceImpl implements ITCustomerService 
{
    @Autowired
    private TCustomerMapper tCustomerMapper;

    /**
     * 查询用户
     * 
     * @param id 用户主键
     * @return 用户
     */
    @Override
    public TCustomer selectTCustomerById(Long id)
    {
        return tCustomerMapper.selectTCustomerById(id);
    }

    /**
     * 查询用户列表
     * 
     * @param tCustomer 用户
     * @return 用户
     */
    @Override
    public List<TCustomer> selectTCustomerList(TCustomer tCustomer)
    {
        return tCustomerMapper.selectTCustomerList(tCustomer);
    }

    /**
     * 新增用户
     * 
     * @param tCustomer 用户
     * @return 结果
     */
    @Override
    public int insertTCustomer(TCustomer tCustomer)
    {
        return tCustomerMapper.insertTCustomer(tCustomer);
    }

    /**
     * 修改用户
     * 
     * @param tCustomer 用户
     * @return 结果
     */
    @Override
    public int updateTCustomer(TCustomer tCustomer)
    {
        return tCustomerMapper.updateTCustomer(tCustomer);
    }

    /**
     * 批量删除用户
     * 
     * @param ids 需要删除的用户主键
     * @return 结果
     */
    @Override
    public int deleteTCustomerByIds(Long[] ids)
    {
        return tCustomerMapper.deleteTCustomerByIds(ids);
    }

    /**
     * 删除用户信息
     * 
     * @param id 用户主键
     * @return 结果
     */
    @Override
    public int deleteTCustomerById(Long id)
    {
        return tCustomerMapper.deleteTCustomerById(id);
    }
}
